home *** CD-ROM | disk | FTP | other *** search
/ El Mac 9 / El Mac 9.iso / Shareware / Applications / MathPad 2.4 / XFuns / readsnd / readsnd.rsrc / TEXT_130_playsnd().txt < prev    next >
Encoding:
Text File  |  1996-04-15  |  428 b   |  10 lines

  1. ----- playsnd(samples,rate)
  2. -- Play the array "samples" through the sound synthesizer. Sample values must range from 0 to 255. The sample rate is specified in Hz and can be up to 64KHz.
  3. -- (To try this example, option drag the "Wild Eep" sound from your system suitcase).
  4.  
  5.   rate:=readsnd("Wild Eep"):;  rate:11127.2727
  6.   playsnd(samples,rate/3):
  7.   playsnd(samples,rate/2):
  8.   playsnd(samples,rate):
  9.   playsnd(samples,rate*1.3):
  10.